
.header-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 40px 0;
    /* Retire background-image ici */
}

.header-content::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url('photo/com/fontete.jpg');          
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1; /* Ajuste l’opacité ici */
    z-index: 0;
}

.header-content > * {
    position: relative;
    z-index: 1;
}


h1 {
    margin: 0px 0;
    color: #fff;
    text-align: center;
}
.logo-img {
    width: 200px;
    height: auto;
    margin: 0;
    padding: 0;
    display: block;
}


.menu-btn {
    background: #444;
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 18px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
}
.menu-btn:hover {
    background: #666;
}
.logo-img {
    width: 200px; /* ou la taille que tu veux */
    height: auto;
}
.corps {
    background: #e5e0e0;
    flex: 1 1 auto;
    width: 100%;
}
body {
    background-color: #303030;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
}
.tete {
    text-align: center;
    font-size: 1.5em;   /* Agrandit le texte */
    font-style: italic; /* Met en italique */
    color: #000000;       
}
.menu-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
 
    border: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    cursor: pointer;
    position: absolute;
    top: 24px;
    left: 24px;
    z-index: 101;
    padding: 0;
    transition: background 0.2s;
    
}
.menu-toggle:hover {
    background: #d3b1b1;
}
.menu-toggle .bar {
    display: block;
    width: 26px;
    height: 4px;
    margin: 3px 0;
    background: #444;
    border-radius: 2px;
    transition: 0.3s;
    
}

/* Menu déroulant */
.menu-list {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: #f1dada;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    position: absolute;
    top: 80px;
    left: 24px;
    min-width: 220px;
    z-index: 100;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow: hidden;
    
}
.menu-list.show {
    display: flex;
}
.menu-list li {
    width: 100%;
}
.menu-list li a {
    display: block;
    padding: 16px 28px;
    color: #222;
    text-decoration: none;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.menu-list li a:hover {
    background: #f2f2f2;
}
.menu-list li:last-child a {
    border-bottom: none;
}

#search-input {
    display: none;
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: 60vw;           /* Largeur responsive */
    max-width: 700px;      /* Largeur max */
    min-width: 280px;
    padding: 12px 48px 12px 20px;
    border-radius: 24px;
    border: 1.5px solid #ccc;
    font-size: 1.15em;
    background: #fff;
    color: #222;
    box-shadow: 0 4px 24px rgba(0,0,0,0.13);
    outline: none;
    transition: box-shadow 0.2s, border 0.2s, background 0.2s, opacity 0.25s, transform 0.25s;
    opacity: 0;
    pointer-events: none;
}
#search-input.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}
#search-input:focus {
    border: 1.5px solid #d3b1b1;
    background: #fff;
    box-shadow: 0 6px 32px rgba(180, 120, 120, 0.18);
}
p {
    font-size: 20px;
    color: #000000;
    margin-bottom: 22px;
    text-align: justify;
    max-width: 900px; /* Largeur maximale réduite */
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   STYLES POUR LES CONTENEURS DE MÉDITATION ET VIDÉOS
   ======================================== */

.meditation-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: stretch;
    max-width: 900px;
    margin: 40px auto;
    padding: 25px;
    /* Effet glassmorphism */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.meditation-text {
    flex: 1;
    min-width: 0;
    background: rgba(255, 255, 255, 0.6);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.meditation-text h2 {
    color: #1a1a1a;
    font-size: 1.8em;
    margin-bottom: 15px;
    border-bottom: 3px solid #d3b1b1;
    padding-bottom: 10px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* Styles du lecteur audio */
.audio-player {
    background: #f0f4f8;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Boutons de contrôle ronds */
.control-btn {
    background: #4a6fa5;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.control-btn:hover {
    background: #3a5a80;
    transform: scale(1.1);
}

/* Bouton de lecture principal */
#readAloudBtn {
    width: 50px;
    height: 50px;
    font-size: 20px;
    background: #4a6fa5;
}

/* Bouton d'arrêt */
#stopReadBtn {
    background: #dc3545;
    width: 40px;
    height: 40px;
}

#stopReadBtn:hover {
    background: #c82333;
    transform: scale(1.1);
}

.progress-container {
    flex: 1;
    background: #e9ecef;
    height: 6px;
    border-radius: 3px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    height: 100%;
    width: 100%;
    position: relative;
}

.progress {
    background: #4a6fa5;
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.time-display {
    font-size: 12px;
    color: #6c757d;
    margin-top: 5px;
    text-align: right;
}

.voice-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px;
}

.voice-select {
    padding: 5px 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-size: 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 10px;
    padding-right: 25px;
    min-width: 150px;
}

.voice-select:focus {
    outline: none;
    border-color: #4a6fa5;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.volume-btn {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #4a6fa5;
    padding: 5px;
}

#volumeSlider {
    width: 80px;
    -webkit-appearance: none;
    height: 4px;
    background: #dee2e6;
    border-radius: 2px;
    outline: none;
}

#volumeSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: #4a6fa5;
    border-radius: 50%;
    cursor: pointer;
}

/* Styles pour la section de méditation */
.meditation-text p {
    font-size: 18px;
    line-height: 1.7;
    color: #1a1a1a;
    text-align: justify;
}

.meditation-text a {
    color: #d3b1b1;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.meditation-text a:hover {
    color: #b08888;
    text-decoration: underline;
}

.meditation-video {
    flex: 1;
    min-width: 0;
    position: relative;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.meditation-video video {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    background: #000;
    display: block;
    max-width: 100%;
    object-fit: contain;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

/* ========================================
   RESPONSIVE - TABLETTES (max-width: 768px)
   ======================================== */

@media screen and (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
        width: 100%;
        overflow-x: hidden;
    }

    .container {
        padding: 0;
        max-width: 100%;
        margin: 0;
        width: 100%;
    }

    .meditation-container {
        gap: 15px;
        margin: 0;
        padding: 10px;
        border-radius: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .meditation-text {
        padding: 10px;
        font-size: 1em;
        line-height: 1.6;
        width: 100%;
        box-sizing: border-box;
    }

    .meditation-text h2 {
        font-size: 1.3em;
        margin: 10px 0;
        padding: 0 0 8px 0;
        border-bottom: 2px solid #d3b1b1;
    }

    .meditation-text p {
        margin: 0 0 1.2em 0;
        padding: 0 5px;
    }
    
    .meditation-text iframe,
    .meditation-text video {
        max-width: 100% !important;
        height: auto !important;
        margin: 10px 0;
    }

    .audio-player {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 0;
        padding: 10px 12px;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
        z-index: 1000;
        background: #f8f9fa;
        border-top: 1px solid #dee2e6;
    }
    
    /* Espace pour éviter que le contenu ne soit caché par le lecteur */
    body {
        padding-bottom: 80px !important;
    }

    .player-controls {
        gap: 10px;
    }

    .control-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    #readAloudBtn {
        width: 54px;
        height: 54px;
        font-size: 22px;
    }

    .voice-controls {
        display: none; /* Caché par défaut sur mobile */
    }

    .volume-control {
        margin-left: auto;
    }

    /* Afficher le sélecteur de voix quand nécessaire */
    .voice-controls.active {
        display: flex;
        width: 100%;
        order: 3;
        margin-top: 10px;
    }

    .voice-select {
        width: 100%;
        margin: 5px 0;
    }

    .meditation-text p {
        font-size: 16px;
        line-height: 1.6;
    }
}

/* ========================================
   RESPONSIVE - iPhone SE et petits écrans (max-width: 480px)
   ======================================== */

@media screen and (max-width: 480px) {
    .meditation-container {
        margin: 20px 10px;
        padding: 12px;
        gap: 15px;
        border-radius: 8px;
    }

    .meditation-text h2 {
        font-size: 1.3em;
        margin-bottom: 12px;
        border-bottom: 2px solid #d3b1b1;
        padding-bottom: 8px;
    }

    .meditation-text p {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 15px;
    }

    .meditation-video video {
        border-radius: 6px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .tete {
        font-size: 1.2em !important;
        padding: 0 10px;
    }
}

/* ========================================
   RESPONSIVE - Très petits écrans (max-width: 375px)
   iPhone SE 1ère génération
   ======================================== */

@media screen and (max-width: 375px) {
    .meditation-container {
        margin: 15px 8px;
        padding: 10px;
        gap: 12px;
    }

    .meditation-text h2 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }

    .meditation-text p {
        font-size: 14px;
        line-height: 1.5;
    }

    .tete {
        font-size: 1.1em !important;
    }
}

/* ========================================
   MODE PAYSAGE pour petits écrans
   ======================================== */

@media screen and (max-width: 768px) and (orientation: landscape) {
    .meditation-container {
        padding: 15px;
        gap: 15px;
    }

    .meditation-text h2 {
        font-size: 1.3em;
        margin-bottom: 8px;
    }

    .meditation-text p {
        font-size: 15px;
        line-height: 1.5;
    }
}

/* ========================================
   BOUTON STYLE VERRE (LIQUID GLASS EFFECT)
   ======================================== */
.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    color: #000;
    border: 1px solid rgba(255, 255, 255, 0.29);
    border-radius: 12px;
    padding: 12px 28px;
    font-size: 1.1em;
    font-weight: bold;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.7px);
    -webkit-backdrop-filter: blur(6.7px);
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    letter-spacing: 0.5px;
    display: inline-block;
}

.btn-glass:hover, .btn-glass:focus {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.2);
    color: #000;
}
